0956ebee5b3d297cf2bd220ac1b85a6df915a914,usage/camp/src/test/java/io/brooklyn/camp/brooklyn/EntitiesYamlTest.java,EntitiesYamlTest,testWith2AppLocations,#,453
Before Change
@Test
public void testWith2AppLocations() throws Exception {
Entity app = createAndStartApplication("test-entity-basic-template.yaml",
"locations:",
"- localhost:(name=localhost name)",
"- byon:(hosts=\"1.1.1.1\", name=byon name)");
waitForApplicationTasks(app);
Assert.assertEquals(app.getLocations().size(), 2);
After Change
@Test
public void testWith2AppLocations() throws Exception {
Entity app = createAndStartApplication(loadYaml("test-entity-basic-template.yaml",
"locations:",
"- localhost:(name=localhost name)",
"- byon:(hosts=\"1.1.1.1\", name=byon name)"));
waitForApplicationTasks(app);
Assert.assertEquals(app.getLocations().size(), 2);